//
//  BordersVC.swift
//  BWExtensionKit_Example
//
//  Created by zhuxuhong on 2022/2/22.
//  Copyright © 2022 CocoaPods. All rights reserved.
//

import UIKit

class BordersVC: UIViewController {
    @IBOutlet weak var borderView: UIView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        borderView.setupZBorders(postions: [
            .all
        ], colors: [
            .top: .red,
            .left: .green,
            .bottom: .blue,
            .right: .yellow
        ], widths: [
            .top: 10,
            .left: 20,
            .bottom: 30,
            .right: 40
        ], spaces: [
            .top: 10,
            .left: 20,
            .bottom: 30,
            .right: 40
        ])
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        borderView.setupZBorders(colors: [.all: .red], widths: [.all: 10])
    }
    
    override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {

    }
    
    override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
        
    }
}
